<?php $this->load->view("home/funcPerfil_js");?>
<form name="regUsuario" class="form-horizontal well" method="post" onsubmit="return validarRegistro2()" action="<?php echo base_url(); ?>home/actualizar" accept-charset="utf-8">
 <?php sipcop_openFieldset();?> 
<div class="container-fluid ">
    <legend>Empresa<button class="btn btn-success btn-mini offset2" type="button" onclick="Habilitar('empresa');HacerVisible('butGuar')">Editar<i class="icon-edit"></i></button> </legend>   
    <div class="row-fluid" id="empresa">                
        <div class="span6 ">
          <?php
          $options=array(array('value'=>'Juridica','label'=>'Jurídica'),array('value'=>'Natural','label'=>'Natural'));
            sipcop_radioInlineName('tipPer', 'tipPer','Tipo Persona(*)', $options, $tipPer, false);
            sipcop_inputText("razon", "Razón Social(*)", $razon, false);
            sipcop_inputText("ruc", "RUC(*)", $ruc, false);                    
          ?>  
        </div>
        <div class="span4 ">
        <?php 
             sipcop_inputText("rublo", "Rublo(*)", $rublo, false);    
            sipcop_inputText("direc", "Dirección(*)", $direc, false);
            sipcop_inputText("telef", "Telefono(*)", $telef, false);            
           
          ?>  
        </div> 
  
    </div>    
</div>
 <div class="container-fluid" id="repre">
  
    <legend>Representante Legal<button class="btn btn-success btn-mini offset2" type="button" onclick="Habilitar('repre');HacerVisible('butGuar')">Editar<i class="icon-edit"></i></button> </legend>   
    <div class="row-fluid">        
        <?php          
            $options=array(array('value'=>'G','label'=>'Femenino'),array('value'=>'M','label'=>'Masculino'));
            sipcop_radioInlineName('gener', 'gener','Género(*)', $options, $gen, false);?>
    </div>
    <div class="row-fluid">                
        <div class="span6 ">
          <?php           
            sipcop_inputText("nombres", "Nombres(*)", $nom, false);
            sipcop_inputText("apellid", "Apellidos(*)",$apellido, false);                    
          ?>  
        </div>
        <div class="span4 ">
        <?php 
                 
            sipcop_inputText("dni", "DNI(*)", $dni, false);
            sipcop_inputText("telefcEL", "Telef/Cel", $telfce, false);            
           
          ?>  
        </div> 
       
    </div>    
</div>
    
    <div class="container-fluid">
 
    <legend>Datos Cuenta<button class="btn btn-success btn-mini offset2" type="button" onclick="Habilitar('cuenta');HacerVisible('butGuar')">Editar<i class="icon-edit"></i></button> </legend>   
    <div class="row-fluid" id="cuenta">                
        <div class="span6">
          <?php           
            sipcop_inputTextEnvent("email", "Email(*)", $email, false, "onblur=verificaEmail(this)");
            sipcop_inputTextEnvent("confirEm", "Confirmar Email(*)", $email, false,"onblur=EmailNoCoincide()");                    
          ?>  
        </div>
        
        <div class="span4 ">
        <?php 
                 
            sipcop_inputPass("pass", "Contraseña(*)", $pass, false);
            sipcop_inputPassEvent("confiPass", "Confirmar Contraseña(*)", $pass, false,"onblur=PassNoCoincide()");            
           
          ?>  
        </div>
        

    </div>
        <div id="confirmEmail"><input type="hidden" id="invalido" value="0"></div>        
    <div id="butGuar" class="row-fluid" style="display:none;">        
        <div class="span4 offset8">
            <button  class="btn  btn-success" type="submit"  >Guardar</button>            
        </div>
    </div>
</div>
   <?php sipcop_closeFieldset();?>
</form>
